<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="description" content="雅韵家居 - 新中式与轻奢实木家具电子图册">
    <title>雅韵家居电子图册</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
            background: #f8f5f0;
            color: #5c4b37;
            line-height: 1.6;
            padding: 15px;
            min-height: 100vh;
        }
        
        .container {
            max-width: 100%;
            margin: 0 auto;
        }
        
        .wechat-header {
            text-align: center;
            margin-bottom: 20px;
            padding: 15px;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            position: relative;
        }
        
        .wechat-header h1 {
            font-size: 1.5rem;
            margin-bottom: 8px;
            color: #8B4513;
            font-weight: 600;
        }
        
        .wechat-header p {
            font-size: 0.9rem;
            color: #7a6a58;
            margin-bottom: 15px;
        }
        
        .logo {
            width: 70px;
            height: 70px;
            margin: 0 auto 15px;
            background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.8rem;
        }
        
        .btn-view {
            display: block;
            background: linear-gradient(to right, #8B4513, #A0522D);
            color: white;
            padding: 14px 25px;
            font-size: 1rem;
            font-weight: 600;
            border: none;
            border-radius: 25px;
            margin: 0 auto;
            width: 90%;
            max-width: 280px;
            box-shadow: 0 4px 10px rgba(139, 69, 19, 0.25);
            transition: all 0.3s ease;
        }
        
        .btn-view:active {
            transform: scale(0.97);
            background: linear-gradient(to right, #7a3b0f, #8f4925);
        }
        
        .features {
            display: flex;
            flex-direction: column;
            gap: 15px;
            margin: 25px 0;
        }
        
        .feature {
            background: white;
            padding: 18px;
            border-radius: 12px;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
            display: flex;
            align-items: center;
        }
        
        .feature-icon {
            width: 50px;
            height: 50px;
            background: rgba(139, 69, 19, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            flex-shrink: 0;
        }
        
        .feature-icon i {
            font-size: 1.5rem;
            color: #8B4513;
        }
        
        .feature-content h3 {
            font-size: 1.1rem;
            margin-bottom: 5px;
            color: #5c4b37;
        }
        
        .feature-content p {
            font-size: 0.85rem;
            color: #7a6a58;
        }
        
        .catalog-preview {
            margin: 25px 0;
            background: white;
            padding: 15px;
            border-radius: 12px;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
        }
        
        .catalog-preview h2 {
            text-align: center;
            font-size: 1.3rem;
            color: #8B4513;
            margin-bottom: 15px;
        }
        
        .preview-images {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
        }
        
        .preview-item {
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }
        
        .preview-item img {
            width: 100%;
            height: 120px;
            object-fit: cover;
            display: block;
        }
        
        .wechat-footer {
            text-align: center;
            margin-top: 30px;
            padding: 15px;
            color: #7a6a58;
            font-size: 0.8rem;
        }
        
        .contact-info {
            background: white;
            padding: 15px;
            border-radius: 12px;
            margin-top: 20px;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
        }
        
        .contact-info h3 {
            text-align: center;
            color: #8B4513;
            margin-bottom: 12px;
            font-size: 1.1rem;
        }
        
        .contact-details {
            display: flex;
            flex-direction: column;
            gap: 8px;
            font-size: 0.9rem;
        }
        
        .contact-details div {
            display: flex;
            align-items: center;
        }
        
        .contact-details i {
            width: 25px;
            color: #8B4513;
            font-size: 1rem;
        }
        
        /* 模态窗口样式 */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.95);
            z-index: 1000;
            overflow: hidden;
            opacity: 0;
            transition: opacity 0.3s ease;
            touch-action: manipulation;
        }
        
        .modal-show {
            opacity: 1;
        }
        
        .modal-content {
            position: relative;
            background-color: #fefefe;
            margin: 10% auto;
            padding: 20px 15px;
            border-radius: 12px;
            width: 95%;
            max-width: 500px;
            box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
            max-height: 85vh;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }
        
        .close {
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 28px;
            font-weight: bold;
            color: #8B4513;
            cursor: pointer;
            z-index: 10;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .modal-header {
            text-align: center;
            padding: 0 10px 15px;
            margin-bottom: 15px;
        }
        
        .modal-header h2 {
            font-size: 1.4rem;
            color: #8B4513;
        }
        
        .catalog-container {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
            margin-top: 15px;
        }
        
        .catalog-item {
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
            background: white;
        }
        
        .catalog-item img {
            width: 100%;
            height: 140px;
            object-fit: cover;
            display: block;
        }
        
        .catalog-item p {
            padding: 12px 8px;
            text-align: center;
            font-weight: 500;
            color: #5c4b37;
            font-size: 0.85rem;
        }
        
        .download-btn {
            display: block;
            background: linear-gradient(to right, #8B4513, #A0522D);
            color: white;
            padding: 12px 20px;
            font-size: 1rem;
            font-weight: 600;
            border: none;
            border-radius: 25px;
            margin: 25px auto 10px;
            width: 90%;
            max-width: 250px;
            text-align: center;
        }
        
        /* 微信浏览器优化 */
        @media (max-width: 375px) {
            .wechat-header h1 {
                font-size: 1.3rem;
            }
            
            .preview-images {
                grid-template-columns: 1fr;
            }
        }
        
        /* 横屏模式优化 */
        @media (max-height: 500px) and (orientation: landscape) {
            .modal-content {
                margin: 5% auto;
                max-height: 90vh;
            }
            
            .catalog-container {
                grid-template-columns: repeat(3, 1fr);
            }
            
            .catalog-item img {
                height: 110px;
            }
        }
        
        .wechat-tips {
            background: #e6f7ff;
            border-left: 4px solid #1890ff;
            padding: 10px 15px;
            margin: 15px 0;
            border-radius: 4px;
            font-size: 0.85rem;
        }
        
        .wechat-tips h3 {
            color: #1890ff;
            margin-bottom: 5px;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="wechat-header">
            <div class="logo">
                <i class="fas fa-chair"></i>
            </div>
            <h1>雅韵家居电子图册</h1>
            <p>新中式与轻奢实木家具的完美融合</p>
            <button class="btn-view" id="viewCatalogBtn">
                <i class="fas fa-book-open"></i> 立即查看电子图册
            </button>
        </div>
        
        <div class="wechat-tips">
            <h3>使用提示</h3>
            <p>点击上方按钮查看完整电子图册，在微信中可点击右上角"..."分享给朋友或朋友圈</p>
        </div>
        
        <div class="features">
            <div class="feature">
                <div class="feature-icon">
                    <i class="fas fa-tree"></i>
                </div>
                <div class="feature-content">
                    <h3>优质木材</h3>
                    <p>精选北美FAS级黑胡桃木、白蜡木等名贵木材</p>
                </div>
            </div>
            
            <div class="feature">
                <div class="feature-icon">
                    <i class="fas fa-hammer"></i>
                </div>
                <div class="feature-content">
                    <h3>传统工艺</h3>
                    <p>采用传统榫卯工艺与现代精密技术结合</p>
                </div>
            </div>
            
            <div class="feature">
                <div class="feature-icon">
                    <i class="fas fa-pencil-alt"></i>
                </div>
                <div class="feature-content">
                    <h3>定制设计</h3>
                    <p>专业设计师团队提供免费咨询与全案定制服务</p>
                </div>
            </div>
        </div>
        
        <div class="catalog-preview">
            <h2>产品预览</h2>
            <div class="preview-images">
                <div class="preview-item">
                    <img src="https://images.unsplash.com/photo-1555041469-a586c61ea9bc?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=600&q=80" alt="新中式沙发">
                </div>
                <div class="preview-item">
                    <img src="https://images.unsplash.com/photo-1598300042247-d088f8ab3a91?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=600&q=80" alt="轻奢实木床">
                </div>
                <div class="preview-item">
                    <img src="https://images.unsplash.com/photo-1533090368676-1fd25485db88?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=600&q=80" alt="山水屏风">
                </div>
                <div class="preview-item">
                    <img src="https://images.unsplash.com/photo-1601760561441-16420502c7e0?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=600&q=80" alt="茶台">
                </div>
            </div>
        </div>
        
        <div class="contact-info">
            <h3>联系我们</h3>
            <div class="contact-details">
                <div>
                    <i class="fas fa-map-marker-alt"></i>
                    <span>地址：广东省佛山市顺德区家具大道168号</span>
                </div>
                <div>
                    <i class="fas fa-phone"></i>
                    <span>电话：0757-88888888</span>
                </div>
                <div>
                    <i class="fas fa-envelope"></i>
                    <span>邮箱：contact@yayunfurniture.com</span>
                </div>
            </div>
        </div>
        
        <div class="wechat-footer">
            <p>© 2023 雅韵家居 | 新中式轻奢实木家具源头工厂</p>
            <p>在微信中长按识别二维码关注公众号</p>
            <!-- 这里可以放置公众号二维码 -->
        </div>
    </div>
    
    <!-- 电子图册模态窗口 -->
    <div id="catalogModal" class="modal">
        <div class="modal-content">
            <span class="close" id="closeModal">&times;</span>
            
            <div class="modal-header">
                <h2>雅韵家居电子图册</h2>
                <p>欢迎浏览我们的产品系列，所有产品均可定制尺寸和材质</p>
            </div>
            
            <div class="catalog-container">
                <div class="catalog-item">
                    <img src="https://images.unsplash.com/photo-1555041469-a586c61ea9bc?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=600&q=80" alt="新中式沙发">
                    <p>云纹系列沙发</p>
                </div>
                
                <div class="catalog-item">
                    <img src="https://images.unsplash.com/photo-1598300042247-d088f8ab3a91?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=600&q=80" alt="轻奢实木床">
                    <p>轻奢实木大床</p>
                </div>
                
                <div class="catalog-item">
                    <img src="https://images.unsplash.com/photo-1533090368676-1fd25485db88?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=600&q=80" alt="山水屏风">
                    <p>山水意境屏风</p>
                </div>
                
                <div class="catalog-item">
                    <img src="https://images.unsplash.com/photo-1601760561441-16420502c7e0?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=600&q=80" alt="茶台">
                    <p>明式茶台组合</p>
                </div>
                
                <div class="catalog-item">
                    <img src="https://images.unsplash.com/photo-1519947486511-46149fa0a254?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=600&q=80" alt="餐桌">
                    <p>圆韵餐桌椅套装</p>
                </div>
                
                <div class="catalog-item">
                    <img src="https://images.unsplash.com/photo-1505842381624-c6b0579625a5?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=600&q=80" alt="柜子">
                    <p>百宝阁陈列柜</p>
                </div>
            </div>
            
            <button class="download-btn">
                <i class="fas fa-download"></i> 下载完整图册
            </button>
        </div>
    </div>

    <script>
        // 获取模态窗口元素
        const modal = document.getElementById("catalogModal");
        const viewBtn = document.getElementById("viewCatalogBtn");
        const closeBtn = document.getElementById("closeModal");
        
        // 点击查看按钮打开模态窗口
        viewBtn.addEventListener("click", function() {
            modal.style.display = "block";
            document.body.style.overflow = "hidden"; // 防止背景滚动
            setTimeout(() => {
                modal.classList.add("modal-show");
            }, 10);
        });
        
        // 点击关闭按钮关闭模态窗口
        closeBtn.addEventListener("click", closeModal);
        
        // 点击模态窗口背景关闭窗口
        modal.addEventListener("click", function(event) {
            if (event.target === modal) {
                closeModal();
            }
        });
        
        // 关闭模态窗口函数
        function closeModal() {
            modal.classList.remove("modal-show");
            setTimeout(() => {
                modal.style.display = "none";
                document.body.style.overflow = "auto"; // 恢复背景滚动
            }, 300);
        }
        
        // 微信浏览器检测
        function isWechatBrowser() {
            var ua = navigator.userAgent.toLowerCase();
            return ua.indexOf('micromessenger') !== -1;
        }
        
        if (isWechatBrowser()) {
            // 在微信浏览器中，可以添加特定的功能
            document.querySelector('.wechat-tips').style.display = 'block';
        }
    </script>
</body>
</html>